package com.craterhill.java.ccp.dao.impl;

import java.util.List;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.craterhill.java.ccp.common.beans.Student;
import com.craterhill.java.ccp.dao.StudentDao;

@Repository
public class StudentDaoImpl extends AbstractDao<Student> implements StudentDao {
	@Autowired
	public StudentDaoImpl(final DataSource dataSource) {
		super(dataSource);
	}

	@Override
	public Student find(int recordId) {
		return null;
	}

	@Override
	public List<Student> findAll() {
		return super.findMultipleObject(FIND_ALL_STUDENT, new StudentExtractor());
	}

}
